/*
 * MockMain.cpp
 *
 *  Created on: Dec 25, 2014
 *      Authors: Avihay Avitan & Stefan Farcas
 */
#include "ProgressStatusSubscriber/ProgressStatusSubscriber.h"

#include "ProgressStatusPublisher/ProgressStatusPublisher.h"

using namespace ProgressStatusSpace;

int main()
{
	ProgressStatusSubscriber sub;
	ProgressStatus * status = new ProgressStatus();
	bool success = true;

	while (1)
	{
		success = sub.receiveProgressStatus(status);
		if (success)
		{
			std::cout << status->getTimeStampString() + " " + status->getClass() + ": " + status->getFunction( ) + "- " + status->getContent() << std::endl ;
		}
	}
}
